package com.deyuanyun.pic.pig.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.web.servlet.ModelAndView;

import com.deyuanyun.pic.domain.base.Attachment;
import com.deyuanyun.pic.pig.domain.CleanPipeLineManagerVo;
import com.deyuanyun.pic.pig.domain.InspSegment;
import com.deyuanyun.pic.pig.domain.PigTask;

public interface CleanPipeLineManagerService {

	List getCleanPipeLineManagerIndex(CleanPipeLineManagerVo taskVo);

	Map<String, Object> deleteFunById(String idStr) throws Exception;

	int publishFunById(String idStr) throws Exception;

	List<InspSegment> getSegment(String lineId);

	Map<String, Object> getMarkPoint(Map<String, Object> map, String inspSegmentId);

	Map<String, Object> saveTask(Map<String, Object> map, String taskId, String taskName, String lineId, String segmentId, String markPoint,
			String fromPig, String toPig, String remark,String type,String pigType, String pagDateTime, String reverse) throws Exception;

	ModelAndView getData(ModelAndView mv, String taskId) throws Exception;

	PigTask getTask(String taskId);

	Map<String, Object> addOrModify(String taskId, Map<String, Object> map);

	Map<String, Object> getCleanTool(String name);

	Map<String, Object> copyTask(String taskId) throws Exception;

	Map<String, Object> copySave(String taskId, String cleanTool, String remark, String taskName, String planTime, String fromPig, String toPig)throws Exception;

	void savefile(String sourceName, String targetName, String tid)throws Exception;

	List<Attachment> downloadTaskFile(String taskId);

	List<Map<String,Object>> findAllMapData(Map<String, Object> map);

	List<String> findAllSegmentByInspSegmentId(String segmentId);

	List<HashMap<String, Object>> findZuoBiaoByInspSegmentId(Map<String, Object> map);
}
